package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


/**
 * controller和web的分组表 实体类
 *
 * @author magic
 */
@Data
@TableName("nova_web_service")
@EqualsAndHashCode
@Schema(description = "WebService对象")
public class WebServiceEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id 主键雪花算法id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "主键id,自动生成")
	private Long id;
	/**
	 * 网页id
	 */
    @Schema(description = "网页id")
    @TableField("web_id")
	private Long webId;
	/**
	 * controller_id
	 */
    @Schema(description = "controller_id")
    @TableField("service_id")
	private Long serviceId;

}
